<%
	def tableDefine=tableModel.tableDefine;
    def columns=tableDefine.columns;
	Set excludes=["createdBy", "updatedBy", "createdTime", "updatedTime", "deleted"];
%>
package ${config.basePackage}${config.category};
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.znv.common.base.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * ${tableDefine.cnname} 实体类
 *
 * @author ${config.author}
 * @date ${config.nowDate}
 */
@Data
@TableName("${tableDefine.dbTableName}")
public class ${tableDefine.id}Entity extends BaseEntity implements Serializable{
	private static final long serialVersionUID = ${PubUtils.getRandomLong()}L;
<%
	columns.each{
		if(it==null){
			return ;
		}
		if(!excludes.contains(it.getDataName())) {
			println """	@ApiModelProperty(value = "${it.cnname}")""";
			if(it.getIsPK()){
				println """	@TableId(value = "${it.cnname}", type = IdType.AUTO)""";
			}
			println """	private ${tableNameUtil.getDataType(it.columnType)} ${it.dataName};""";
		}
	};
%>
}